/*
 * Timer.h
 *
 *  Created on: 09-02-2012
 *      Author: Mati
 */
#ifdef __USE_CMSIS
#include "LPC17xx.h"
#endif

#include "FreeRTOS.h"
#include "../LED/LED.h"
#include "queue.h"
#include "semphr.h"
#include "portmacro.h"

#ifndef TIMER_H_
#define TIMER_H_

void Timer1_Config(void);
__INLINE void Timer2_Config(void);
__INLINE void SoundOn(uint16_t frequency);
__INLINE void SoundOff(void);
void vSetSpeakerParams(uint16_t duration, uint16_t frequency);
void TIMER1_IRQHandler(void) ;
void TIMER2_IRQHandler(void) ;


void RIT_Config();
void RIT_IRQHandler();

#endif /* TIMER_H_ */
